# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=ciwiki
pkgver=2.0.5
pkgrel=1
pkgdesc="A personal lightweight wiki written in C"
url="http://ciwiki.sourceforge.net/"
arch="all"
license="GPL-3.0"
options="!check"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz"

builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	cd "$builddir"
        ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/ciwiki
        make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"

}

sha512sums="ce4aefb8fa7cc0630b1d1841260452d50f762a8c8b3e8da1fb0c878cada9ccfc1824d1e20004db8bc8f9c77a0658879e3fa97c4914e73618b404937fb5ea1c29  ciwiki-2.0.5.tar.gz"
